/*
 * @Author: WangZhiYu <w19165802736@163.com>
 * @Date: 2025-04-18 22:05:11
 * @LastEditTime: 2025-04-19 10:57:21
 * @LastEditors: WangZhiYu <w19165802736@163.com>
 * @Descripttion:
 */
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import enMessage from './en'
import zhMessage from './zh'

Vue.use(VueI18n)

const messages = {
    en: {
        message: enMessage
    },
    zh: {
        message: zhMessage
    }
}

const i18n = new VueI18n({
    locale: localStorage.getItem('lang') || 'en',
    messages
})

export default i18n
